Skip to content

Conversation

@pamaury
Copy link
Contributor

@pamaury pamaury commented Nov 4, 2025

This virtual host talks to the QEMU usbdev driver. At the moment, this host perform the initial handshake, turns on vbus, waits for a device connection and retrieve the device descriptor.

This host is not super useful in its current state and will be extended in future PRs but it is already quite a large piece of work and it's good state to stop.

@pamaury pamaury requested a review from a team as a code owner November 4, 2025 13:45
@pamaury pamaury requested review from AlexJones0, jwnrt and nbdd0121 and removed request for a team November 4, 2025 13:45
@pamaury pamaury force-pushed the qemu_ott_usb_backend branch 2 times, most recently from ab4ed95 to 5fcbb86 Compare November 4, 2025 15:26
This virtual host talks to the QEMU usbdev driver. At the moment,
this host perform the initial handshake, turns on vbus, waits for
a device connection and retrieve the device descriptor.

Signed-off-by: Amaury Pouly <[email protected]>
@pamaury pamaury force-pushed the qemu_ott_usb_backend branch from 5fcbb86 to 2c78648 Compare November 6, 2025 13:37
impl Drop for QemuUsbHost {
fn drop(&mut self) {
// Nicely ask the host thread to stop.
let _ = self.host_channel.send(HostChannelEvent::Shutdown);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mpsc channels have RecvError which correspond to channel shutdown.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I should have read the documentation more closely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants